﻿
using SHKF.B2C.Model.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text; 

namespace SHKF.B2C.YouZanYun.Model.Entity.Order
{
    [SugarTable("Trade_Detail")]
    public class TradeDetailEntity : BaseEntity
    {
        public long FKSN { get; set; }

        /// <summary>
        /// 商品别名
        /// </summary>
        public string alias { get; set; }

        /// <summary>
        /// 商品留言
        /// </summary>
        public string buyer_messages { get; set; }

        /// <summary>
        /// 海淘商品贸易模式
        /// </summary>
        public string cross_border_trade_mode { get; set; }

        /// <summary>
        /// 海淘口岸编码
        /// </summary>
        public string customs_code { get; set; }

        /// <summary>
        /// 非现金抵扣金额
        /// </summary>
        public float discount { get; set; }

        /// <summary>
        /// 单商品现价，减去了商品的优惠金额
        /// </summary>
        public float discount_price { get; set; }

        /// <summary>
        /// 分销非现金抵扣金额
        /// </summary>
        public float fenxiao_discount { get; set; }

        /// <summary>
        /// 分销商品单价
        /// </summary>
        public float fenxiao_discount_price { get; set; }

        /// <summary>
        /// 分销运杂费
        /// </summary>
        public float fenxiao_freight { get; set; }

        /// <summary>
        /// 分销实付金额
        /// </summary>
        public float fenxiao_payment { get; set; }

        /// <summary>
        /// 分销价格
        /// </summary>
        public float fenxiao_price { get; set; }

        /// <summary>
        /// 分销税费
        /// </summary>
        public float fenxiao_tax_total { get; set; }

        /// <summary>
        /// 运杂费
        /// </summary>
        public float freight { get; set; }

        /// <summary>
        /// 商品详情链接
        /// </summary>
        public string goods_url { get; set; }

        /// <summary>
        /// 是否海淘订单, 1是海淘
        /// </summary>
        public string is_cross_border { get; set; }

        /// <summary>
        /// 是否赠品
        /// </summary>
        public bool is_present { get; set; }

        /// <summary>
        /// 商品条码
        /// </summary>
        public string item_barcode { get; set; }


        /// <summary>
        /// 商品id
        /// </summary>
        public long item_id { get; set; }

        /// <summary>
        /// 商品留言
        /// </summary>
        public string item_message { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string item_no { get; set; }


        /// <summary>
        /// 订单类型 0:普通类型商品; 
        /// 1:拍卖商品; 
        /// 5:餐饮商品; 
        /// 10:分销商品; 
        /// 20:会员卡商品; 
        /// 21:礼品卡商品; 
        /// 23:有赞会议商品;
        /// 24:周期购; 
        /// 30:收银台商品; 
        /// 31:知识付费商品; 
        /// 35:酒店商品; 
        /// 40:普通服务类商品; 
        /// 182:普通虚拟商品; 
        /// 183:电子卡券商品; 
        /// 201:外部会员卡商品; 
        /// 202:外部直接收款商品; 
        /// 203:外部普通商品; 
        /// 205:mock不存在商品; 
        /// 206:小程序二维码
        /// </summary>
        public int item_type { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int num { get; set; }

        /// <summary>
        /// 订单明细id
        /// </summary>
        public string oid { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string outer_item_id { get; set; }

        /// <summary>
        /// 商品规格编码
        /// </summary>
        public string outer_sku_id { get; set; }

        /// <summary>
        /// 商品最终均摊价
        /// </summary>
        public decimal payment { get; set; }

        /// <summary>
        /// 商品图片地址
        /// </summary>
        public string pic_path { get; set; }

        /// <summary>
        /// 商品积分价（非积分商品则为0）
        /// </summary>
        public decimal points_price { get; set; }

        /// <summary>
        /// 单商品原价
        /// </summary>
        public decimal price { get; set; }

        /// <summary>
        /// 规格条码
        /// </summary>
        public string sku_barcode { get; set; }

        /// <summary>
        /// 规格id，无规格商品返回为0
        /// </summary>
        public long sku_id { get; set; }

        /// <summary>
        /// 规格编码
        /// </summary>
        public string sku_no { get; set; }

        /// <summary>
        /// 规格信息（无规格商品为空）
        /// </summary>
        public string sku_properties_name { get; set; }

        /// <summary>
        /// 报关单号
        /// </summary>
        public string sub_order_no { get; set; }

        /// <summary>
        /// 税费
        /// </summary>
        public decimal tax_total { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 商品优惠后总价
        /// </summary>
        public decimal total_fee { get; set; }
    }
}
